<?php
/**
 * Created by PhpStorm.
 * User: 徐嘉宾
 * Date: 2016/8/7
 * Time: 8:26
 */
$this->registerCssFile('@web/css/backstage.css',['depends'=>['app\assets\AppAsset']]);
$this->registerJsFile('@web/uediter/ueditor.config.js',['depends'=>['app\assets\AppAsset']]);
$this->registerJsFile('@web/uediter/ueditor.all.min.js',['depends'=>['app\assets\AppAsset']]);
$this->registerJsFile('@web/uediter/ueditor.js',['depends'=>['app\assets\AppAsset']]);
$this->registerJsFile('@web/js/getreadtype.js',['depends'=>['app\assets\AppAsset']]);
use yii\helpers\Url;
use yii\widgets\LinkPager;
// var_dump($admininfo);die;
?>
<div class="main">
    <!--右侧内容-->
    <div class="cont">
        <div class="title">题目概况</div>
        <div class="details">
            <div class="details_operation clearfix">
                <div class="bui_select">
                    <input type="button" value="添&nbsp;&nbsp;加" class="add">
                </div>
                <div class="fr">
                    <div class="text">
                        <span>日期：</span>
                        <div class="bui_select">
                            <select name="" id="" class="select">
                                <option value="1"><?= date("Y-m-d "); ?></option>
                            </select>
                        </div>
                    </div>
                    <div class="text">
                        <span></span>
                        <div class="bui_select">
                            <select name="" id="" class="select">
                                <option value="1">Learn not and know not.</option>
                            </select>
                        </div>
                    </div>
                    <div class="text">
                        <span></span>
<!--                        <input type="text" value="" class="search">-->
                    </div>
                </div>
            </div>
            <form action="./?r=admin/readadd" method="post" id="read_form">
                <table class="table" cellspacing="0" cellpadding="0">
                    <thead>
                    <tr>
                        <th width="20%">属性</th>
                        <th>内容</th>
                    </tr>
                    </thead>
                    <tbody>


                        <tr>
                            <td>题目名称</td>
                            <td><input name="title" type="text" placeholder="题目名称"></td>
                        </tr>
                        <tr>
                            <td>题目简介</td>
                            <td><input name="info" type="text" placeholder="题目简介"></td>
                        </tr>
                        <tr>
                            <td>题目一级分类</td>
                            <td>
                                <select name="class1" id="class1">
                                    <option value="">请选择</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>题目二级分类、文章编号</td>
                            <td>
                                <select name="class2" id="class2">
                                    <option value="">请选择</option>
                                </select>
                                <input name="class_num" type="text" placeholder="文章编号（注意填写）" >
                            </td>
                        </tr>
                        <tr>
                            <td>Passage编号</td>
                            <td>
                                <select name="passage" id="class2">
                                    <option value="1">1</option>
                                    <option value="2">2</option>
                                    <option value="3">3</option>
                                    <option value="4">4</option>
                                    <option value="5">5</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>题目难度</td>
                            <td>
                                <select name="diff" id="diff">
                                    <option value="1">简单</option>
                                    <option value="2">一般</option>
                                    <option value="3">高</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>题目图片url</td>
                            <td id="imgcon">
                                <input name="img_url" id="img_url" type="text" placeholder="题目图片url">
                                <a id="img" href="javascript:;" onClick="javascript:window.alert('请到修改处上传文件！')">添加图片</a>
                            </td>
                        </tr>
                        <tr>
                            <td>题目原文</td>
                            <td><script id="editor" type="text/plain" style="width:1024px;height:500px;"></script></td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align: center"><input type="submit" class="btn" id="submit">
                                <input type="reset" class="btn">
                            </td>
                        </tr>

                    </tbody>
                </table>
                <input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
                <input name="type" value="1" type="hidden">
            </form>
        </div>
    </div>
</div>